package com.wn.class30.entity;

import java.io.Serializable;

/**
 * product_img_detail
 * @author 
 */
public class ProductImgDetail implements Serializable {
    /**
     * 商品详情展示图id
     */
    private Integer productImgDetailId;

    /**
     * 商品id
     */
    private Integer productId;

    /**
     * 商品详情图片
     */
    private String productImgDetailUrl;

    /**
     * 商品详情描述
     */
    private String productDetailDesc;

    private Integer productDetailSort;

    private static final long serialVersionUID = 1L;

    public Integer getProductImgDetailId() {
        return productImgDetailId;
    }

    public void setProductImgDetailId(Integer productImgDetailId) {
        this.productImgDetailId = productImgDetailId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductImgDetailUrl() {
        return productImgDetailUrl;
    }

    public void setProductImgDetailUrl(String productImgDetailUrl) {
        this.productImgDetailUrl = productImgDetailUrl;
    }

    public String getProductDetailDesc() {
        return productDetailDesc;
    }

    public void setProductDetailDesc(String productDetailDesc) {
        this.productDetailDesc = productDetailDesc;
    }

    public Integer getProductDetailSort() {
        return productDetailSort;
    }

    public void setProductDetailSort(Integer productDetailSort) {
        this.productDetailSort = productDetailSort;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductImgDetail other = (ProductImgDetail) that;
        return (this.getProductImgDetailId() == null ? other.getProductImgDetailId() == null : this.getProductImgDetailId().equals(other.getProductImgDetailId()))
            && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
            && (this.getProductImgDetailUrl() == null ? other.getProductImgDetailUrl() == null : this.getProductImgDetailUrl().equals(other.getProductImgDetailUrl()))
            && (this.getProductDetailDesc() == null ? other.getProductDetailDesc() == null : this.getProductDetailDesc().equals(other.getProductDetailDesc()))
            && (this.getProductDetailSort() == null ? other.getProductDetailSort() == null : this.getProductDetailSort().equals(other.getProductDetailSort()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getProductImgDetailId() == null) ? 0 : getProductImgDetailId().hashCode());
        result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
        result = prime * result + ((getProductImgDetailUrl() == null) ? 0 : getProductImgDetailUrl().hashCode());
        result = prime * result + ((getProductDetailDesc() == null) ? 0 : getProductDetailDesc().hashCode());
        result = prime * result + ((getProductDetailSort() == null) ? 0 : getProductDetailSort().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", productImgDetailId=").append(productImgDetailId);
        sb.append(", productId=").append(productId);
        sb.append(", productImgDetailUrl=").append(productImgDetailUrl);
        sb.append(", productDetailDesc=").append(productDetailDesc);
        sb.append(", productDetailSort=").append(productDetailSort);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}